package com.mt.channel.api.service;

import java.util.List;
import java.util.Map;

import com.mt.channel.entity.ChannelMsgEntity;
import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;

/**
 * 管理员数据接
 *
 * @author raysonfang
 */
public interface IChannelMsgService {
    /**
     * 查询详情
     *
     * @param params
     * @return
     */
    ServiceResult<ChannelMsgEntity> findInfo(Map<String, Object> params);

    /**
     * 查询列表
     *
     * @param params
     * @return
     */
    ServiceResult<List<ChannelMsgEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    /**
     * 创建
     *
     * @param channelMsgEntity
     * @return
     */
    ServiceResult<Integer> doInsert(ChannelMsgEntity channelMsgEntity);

    /**
     * 批量创建
     * @param channelMsgEntityList
     * @return
     */

    ServiceResult<Integer> doInsertList( List<ChannelMsgEntity>  channelMsgEntityList );


    ServiceResult<Integer> updateList(Map<String, Object> params);


    /**
     * 编辑
     *
     * @param channelMsgEntity
     * @return
     */
    ServiceResult<Integer> doUpdate(ChannelMsgEntity channelMsgEntity);

    /**
     * 删除
     *
     * @param channelMsgId
     * @return
     */
    ServiceResult<Integer> doDeleteById(Integer channelMsgId);

    ServiceResult<Integer> selectCount(Map<String, Object> params);
}
